<template>
  <div id="app">
  <router-view></router-view>
  
  


  </div>
</template> 

<script>

export default {
  name: 'App',
  data() {
    return {
     
    }
  },
  created() {
    // 取出登录时存储的用户信息  再次存进vuex中完成持久化处理
    const  token=localStorage.getItem('token');
    this.$store.commit("changeToken",token)

      // 持久化处理收货人信息
    const address = JSON.parse(localStorage.getItem("address"));
    this.$store.commit("address/changereceiver", address.receiver);
    this.$store.commit("address/changeregions", address.regions);
    this.$store.commit("address/changeaddress", address.address);
  },
  components: {
  
  }
}
</script>

<style>

</style>
